<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-TAG/platForm.tld" prefix="PF"%>
<!--代码工程运行向导-->
<div class="easyui-layout" data-options="fit:true">
	<div class="TableTitle" data-options="region:'north',border:false">
		<c:if test="${pageset.pageType==1}">新增${JSP_Messager_Title}记录</c:if>
		<c:if test="${pageset.pageType==2}">修改${JSP_Messager_Title}记录</c:if>
		<c:if test="${pageset.pageType==0}">浏览${JSP_Messager_Title}记录</c:if>
	</div>
	<div data-options="region:'center'">
		<form id="dom_formfarmcodeguide">
			<input type="hidden" name="entity.id" value="${entity.id}">
			<table class="editTable">
				<tr>
					<td class="title">
						数据库驱动类:
					</td>
					<td colspan="3">
							<textarea rows="3" style="width: 360px;" class="easyui-validatebox" data-options="required:false,validType:[,'maxLength[64]']"
							id="entity_dbdriverclass" name="entity.dbdriverclass">${entity.dbdriverclass}</textarea>
					</td>
				</tr>
				<tr>
					<td class="title">
						数据库URL:
					</td>
					<td colspan="3">
							<textarea rows="3" style="width: 360px;" class="easyui-validatebox" data-options="required:false,validType:[,'maxLength[64]']"
							id="entity_dburl" name="entity.dburl">${entity.dburl}</textarea>
					</td>
				</tr>
				<tr>
					<td class="title">
						数据库用户名:
					</td>
					<td colspan="3">
							<textarea rows="3" style="width: 360px;" class="easyui-validatebox" data-options="required:false,validType:[,'maxLength[64]']"
							id="entity_dbusername" name="entity.dbusername">${entity.dbusername}</textarea>
					</td>
				</tr>
				<tr>
					<td class="title">
						数据库用户密码:
					</td>
					<td colspan="3">
							<textarea rows="3" style="width: 360px;" class="easyui-validatebox" data-options="required:false,validType:[,'maxLength[64]']"
							id="entity_dbpassword" name="entity.dbpassword">${entity.dbpassword}</textarea>
					</td>
				</tr>
				<tr>
					<td class="title">
						数据库表名:
					</td>
					<td colspan="3">
							<textarea rows="3" style="width: 360px;" class="easyui-validatebox" data-options="required:false,validType:[,'maxLength[64]']"
							id="entity_tablename" name="entity.tablename">${entity.tablename}</textarea>
					</td>
				</tr>
				<tr>
					<td class="title">
						业务标志CODE:
					</td>
					<td colspan="3">
							<textarea rows="3" style="width: 360px;" class="easyui-validatebox" data-options="required:true,validType:[,'maxLength[64]']"
							id="entity_appcode" name="entity.appcode">${entity.appcode}</textarea>
					</td>
				</tr>
				<tr>
					<td class="title">
						业务标志CODE随机数:
					</td>
					<td colspan="3">
							<select name="entity.apprandom" id="entity_apprandom"  val="${entity.apprandom}"><option value="0">NONE</option></select>
					</td>
				</tr>
				<tr>
					<td class="title">
						业务名称:
					</td>
					<td colspan="3">
							<textarea rows="3" style="width: 360px;" class="easyui-validatebox" data-options="required:true,validType:[,'maxLength[64]']"
							id="entity_appname" name="entity.appname">${entity.appname}</textarea>
					</td>
				</tr>
				<tr>
					<td class="title">
						机构CODE:
					</td>
					<td colspan="3">
							<input type="text" style="width: 360px;" class="easyui-validatebox" data-options="required:true,validType:[,'maxLength[16]']"
							id="entity_comcode" name="entity.comcode" value="${entity.comcode}">
							
					</td>
				</tr>
				<tr>
					<td class="title">
						项目CODE:
					</td>
					<td colspan="3">
							<input type="text" style="width: 360px;" class="easyui-validatebox" data-options="required:true,validType:[,'maxLength[16]']"
							id="entity_procode" name="entity.procode" value="${entity.procode}">
							
					</td>
				</tr>
				<tr>
					<td class="title">
						机构类型:
					</td>
					<td colspan="3">
							<input type="text" style="width: 360px;" class="easyui-validatebox" data-options="required:true,validType:[,'maxLength[16]']"
							id="entity_comtype" name="entity.comtype" value="${entity.comtype}">
							
					</td>
				</tr>
			<c:if test="${pageset.pageType==1}"><!--新增-->
			</c:if>
			<c:if test="${pageset.pageType==2}"><!--修改-->
			</c:if>
			<c:if test="${pageset.pageType==0}"><!--浏览-->
			</c:if>
			</table>
		</form>
	</div>
	<div data-options="region:'south',border:false">
		<div class="div_button" style="text-align: center; padding: 4px;">
			<c:if test="${pageset.pageType==1}">
			<a id="dom_add_entityfarmcodeguide" href="javascript:void(0)"  iconCls="icon-save" class="easyui-linkbutton">增加</a>
			</c:if>
			<c:if test="${pageset.pageType==2}">
			<a id="dom_edit_entityfarmcodeguide" href="javascript:void(0)" iconCls="icon-save" class="easyui-linkbutton">修改</a>
			</c:if>
			<a id="dom_cancle_formfarmcodeguide" href="javascript:void(0)" iconCls="icon-cancel" class="easyui-linkbutton"   style="color: #000000;">取消</a>
		</div>
	</div>
</div>
<script type="text/javascript">
	var submitAddActionfarmcodeguide = 'admin/FarmCodeGuideaddCommit.do';
	var submitEditActionfarmcodeguide = 'admin/FarmCodeGuideeditCommit.do';
	var currentPageTypefarmcodeguide = '${pageset.pageType}';
	var submitFormfarmcodeguide;
	$(function() {
		//表单组件对象
		submitFormfarmcodeguide = $('#dom_formfarmcodeguide').SubmitForm( {
			pageType : currentPageTypefarmcodeguide,
			grid : gridfarmcodeguide,
			currentWindowId : 'winfarmcodeguide'
		});
		//关闭窗口
		$('#dom_cancle_formfarmcodeguide').bind('click', function() {
			$('#winfarmcodeguide').window('close');
		});
		//提交新增数据
		$('#dom_add_entityfarmcodeguide').bind('click', function() {
			submitFormfarmcodeguide.postSubmit(submitAddActionfarmcodeguide);
		});
		//提交修改数据
		$('#dom_edit_entityfarmcodeguide').bind('click', function() {
			submitFormfarmcodeguide.postSubmit(submitEditActionfarmcodeguide);
		});
	});
	//-->
</script>